// pages/person/person.js
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    navbarData: {
      title: '个人中心'
    },
    bgHeight:app.globalData.status+app.globalData.navHeight*5+8,
    isLogin:true,//是否登录
    headTop:app.globalData.status+app.globalData.navHeight
  },
  enter_message:function(e){
    wx.navigateTo({
      url: '/pages/person/message/message'
    })
  },
  clickVip:function(e){
    wx.navigateTo({
      url: '/pages/person/vip/vip'
    })
  },
  clickCard:function(e){
    wx.navigateTo({
      url: '/pages/person/card/card'
    })
  },
  clickCollect:function(){
    wx.navigateTo({
      url: '/pages/person/collect/collect'
    })
  },
  enterBusinessApply:function(){
    wx.navigateTo({
      url: '/pages/person/businessApply/businessApply'
    })
  },

  enterPlan:function(){
    wx.navigateTo({
      url: '/pages/person/plan/plan'
    })
  },
  enterMeeting:function(){
    wx.navigateTo({
      url: '/pages/person/meeting/meeting'
    })
  },

  enterCase:function(){
    wx.navigateTo({
      url: '/pages/person/caseRelease/caseRelease'
    })
  },

  enterUnite:function(){
    wx.navigateTo({
      url: '/pages/person/uniteRelease/uniteRelease'
    })
  },

  enterPurchase:function(){
    wx.navigateTo({
      url: '/pages/person/purchase/purchase'
    })
  },
  requestService:function(){
    wx.showModal({
      title: '提示',
      content: '您好,已收到您的请求,我们将在3个工作日内回复您,请保持电话畅通。',
      showCancel:false,
      success (res) {
        console.log('用户点击确定')
      }
    })
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})